<?php
namespace Action;
use HY\Action;
!defined('HY_PATH') && exit('HY_PATH not defined.');
class ProtocolChange extends HYBBS {

    //类中使用的路径

	public function __construct() {
		parent::__construct();
		//{hook a_post_init}
		if(!IS_LOGIN){
			if(IS_AJAX && IS_POST){
				die($this->json(array('error'=>false,'info'=>'请登录后再操作')));
			}
			else{
				header("location: ". HYBBS_URLA('user','login'));
				die;
			}

		}
	}

	public function View(){
		//打开接收任务界面
		//$task = S('fhl_ctask')->query('select * from hy_fhl_stask')->fetchALL();
        $this->v("title","画方");
        $this->v("title2","全流量加速系统");
		$this->view = 'CQQ';
		$this->display('ProtocolChange');

	}


}
